 
package steven.im.util;   

import java.util.Date;

import steven.im.data.IConfiguration;
  
/**   
 *@author: Steven.amaxgs@gmail.com
 *@version:1.0   
 *@createdata:Nov 14, 2011 3:32:56 PM
 */

public class IMUtil {
	public static String getXMLFilePath(){
		return System.getProperty("user.dir")+IConfiguration.XML_ITEMNAME;
	}
	public static String getCurrentTime(){
		return new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date());
	}
	public static String getCurrentTime(String reg){
		return new java.text.SimpleDateFormat(reg).format(new Date());
	}
	public static String getDateTime(Date date){
		return new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(date);
	}
}
  